package no.mehdi.usereg.rfid.listeners;

import no.mehdi.usereg.rfid.events.DetachEventApp;

import org.springframework.context.ApplicationListener;

import com.phidgets.event.DetachEvent;
import com.phidgets.event.DetachListener;


public class DetachListenerApp implements DetachListener,ApplicationListener<DetachEventApp>{
	
	

	@Override
	public void onApplicationEvent(DetachEventApp arg0) {
		System.out.println("Fired a "+ arg0);
	}
	

	@Override
	public void detached(DetachEvent detachevent) {
		onApplicationEvent(new DetachEventApp(detachevent.getSource()));		
	}
	
	

}
